# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Vincent Kriek <vincent@vincentkriek.nl>

pkgname=wmname
pkgver=0.1
pkgrel=5
pkgdesc="A utility to set the name of your window manager"
url="https://tools.suckless.org/x/wmname"
license=('MIT')
depends=('libx11')
arch=('loong64' 'x86_64')
source=("https://dl.suckless.org/tools/wmname-$pkgver.tar.gz")
sha512sums=('e57100f8de2579f4090c0aaf5a5b134d03bcbcdca5c6d005b12ce39ad322d96651bb13d151cf259e935e6c50e7b21bde43a4eace112be80983a92f92b99f192f')

build() {
  cd "${srcdir}"/$pkgname-$pkgver
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver
  make PREFIX="${pkgdir}"/usr install
  install -Dm0644 LICENSE "${pkgdir}"/usr/share/licenses/$pkgname/LICENSE
}
